public class Bomb {
    int x;
    int y;
    int life = 9;// 总生命值
    boolean isLive = true;// 是否还存活

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }
    // 减少生命值
    public void cutLife(){
        if (life > 0){
            life--;
        }else {
            isLive = false;
        }
    }

}
